﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="MyGroups.aspx.cs" Inherits="SharingCenter.Web.Mod.Groups.MyGroups" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    我的圈子
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
 .gi{padding:.3em 0;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h2 class="bb">
        <div class="nss ns-group">
        </div>
        <div class="iconlabel">
            我的圈子</div>
    </h2>
    <div class="fc">
        <div class="wide-c left">
            <myuc:GenericTabs ID="LinkListTabs2" runat="server" Section="Groups" SelectedItem="2" />
            <div>
                <asp:ListView ID="ListView1" runat="server" DataKeyNames="GroupId" GroupItemCount="2">
                    <GroupTemplate>
                        <tr>
                            <td runat="server" id="itemPlaceholder" />
                        </tr>
                    </GroupTemplate>
                    <LayoutTemplate>
                        <div class="ctn-p-t">
                        <table class="tb-full">
                            <tr runat="server" id="groupPlaceholder" />
                        </table>
                        </div>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <td style="width:50%;">
                            <div class="fc" >
                                <div class="left ctn-p-r">
                                    <div class="left bdr-all" style="padding:.1em;">
                                    <cc:GroupAvatarImage AvatarType="Thumbnail" runat="server" GroupId='<%#Eval("GroupId") %>' AlternateText='' />
                                    </div>
                                </div>
                                <div class="left ctn-p-l">
                                    <asp:HyperLink ID="HyperLink2" runat="server" Text='<%#Eval("GroupName") %>' NavigateUrl='<%#Eval("GroupId", "ViewGroup.aspx?id={0}") %>' CssClass="sz-m"></asp:HyperLink><br />
                                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("CreateDate", "创建: {0:yyyy年M月d日}") %>'></asp:Label><br />
                                     <asp:Label ID="Label2" runat="server" Text='<%#Eval("MemberCount", "成员: {0}") %>'></asp:Label>
                                        
                                </div>
                            </div>
                        </td>
                    </ItemTemplate>
                    <EmptyItemTemplate>
                        <td style="width:50%;"></td>
                    </EmptyItemTemplate>
                </asp:ListView>
            </div>
        </div>
        <div class="wide-s">
            <h3 class="w7 nom">
                <span class="iconlabel">我管理的圈子</span></h3>
            <div class="sc bdr-nt">
                <asp:ListView ID="lvMyAdminedGroupList" runat="server">
                    <LayoutTemplate>
                      
                            <div runat="server" id="itemPlaceholder" />
                        
                    </LayoutTemplate>
                    <ItemTemplate>
                        <div class="gi fc">
                            <div class="left">
                            <asp:Label ID="Label1" ToolTip="我组建的圈子" runat="server" CssClass="nss ns-tick" Visible='<%#SharingCenter.Web.WebProfile.Current.UserId.ToString() == Eval("OwnerUserId").ToString() %>' />
                            <asp:Label ToolTip="私密的圈子" runat="server" CssClass="nss ns-key" style="margin-left:3px;" Visible='<%#Convert.ToInt16(Eval("Privacy"))==3 %>' />
                            <asp:HyperLink CssClass="iconlabel" ID="HyperLink2" runat="server" Text='<%#Eval("GroupName") %>' NavigateUrl='<%#Eval("GroupId", "ViewGroup.aspx?id={0}") %>'></asp:HyperLink>
                            </div>
                            <div class="right">
                                <asp:HyperLink NavigateUrl='<%#Eval("GroupId", "Manage/?id={0}") %>' Text="[管理]" runat="server" />
                                
                            </div>
                        </div>
                    </ItemTemplate>
                    <ItemSeparatorTemplate>
                       <div class="hr1"></div>
                    </ItemSeparatorTemplate>
                    <EmptyDataTemplate>
                        <span class="litetext">没有管理任何圈子。</span>
                    </EmptyDataTemplate>
                </asp:ListView>
            </div>
        </div>
    </div>
</asp:Content>
